package com.yc.ycpaimon.worker

import androidx.work.*
import com.yc.jetpacklib.download.YcDownload
import com.yc.jetpacklib.download.YcDownloadConfig
import com.yc.jetpacklib.init.YcJetpack
import com.yc.ycpaimon.notification.NotificationUtil

/**
 * Creator: yc
 * Date: 2022/3/14 10:28
 * UseDes:
 */
object DownloadTask {
    @JvmStatic
    fun start(url: String, fileName: String) {
        NotificationUtil.showDownload{

        }
        YcDownload(YcDownloadConfig(url, YcJetpack.mInstance.mDefaultSaveDirPath + fileName, {

        }, {

        }))
    }
    const val IMAGE_MANIPULATION_WORK_NAME ="1231"
    fun start2(){
//        val uploadWorkRequest: WorkRequest =
    }
}